package com.dubbo.controller;

import com.dubbo.service.IHxService;
import com.dubbo.service.IWeixinService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Zhuyanfeng on 2018/3/20
 */

public class WeixinController {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        /*IWeixinService iWeixinService = context.getBean(IWeixinService.class);
        String weixinTicket = iWeixinService.getWeixinTicket("zhuyanfeng", "朱艳峰");
        System.out.println(weixinTicket);*/
        IHxService iHxService = context.getBean(IHxService.class);
        String userName = iHxService.getHxUserName("20153309", "abcurdpostskeeee");
        System.out.println(userName);
    }
}
